package esempio.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import esempio.dao.UserDAO;
import esempio.domain.User;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDAO userDao;
	
	@Override
	public void add(User user) {
		//Persist the user object here.
		userDao.saveUser(user);
		System.out.println("User added to the database");

	}

}
